function z = box3(x)
%Box three-dimensional function
%n=3,n<=m,x0=[0,10,20] ????????????m=10
%fmin1=f12([1;10;1],10)=0 or at [10,1,-1] and wherever (x1=x2 and x3=0)
%Author:Ji Lin
m=10;
t=0.1*(1:m);
z=ones(1,m);
for ii=1:m
    z(ii)=exp(-t(ii)*x(1))-exp(-t(ii)*x(2))-x(3)*(exp(-t(ii))-exp(-10*t(ii)));
end
z=sum(z.^2);